<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<h1>Gestion des groupes</h1>
<c:if test="${empty helpdesk}">
<a href="${pageContext.request.contextPath}/groups/create">&gt; Enregistrer un nouveau groupe</a>
</c:if>
<table border="1">
	<tr>
		<td>Nom du groupe</td>
		<c:if test="${empty helpdesk}">
		<td colspan="2">Actions</td>
		</c:if>
	</tr>
	<c:forEach items="${groups}" var="group">
		<tr>
			<td><a href="${pageContext.request.contextPath}/groups/list_user?cn=${group.commonName}">${group.commonName}</a></td>
			<c:if test="${empty helpdesk}">
			<td><a href="${pageContext.request.contextPath}/groups/modify?cn=${group.commonName}">Renommer</a></td>
			<td><a href="${pageContext.request.contextPath}/groups/delete?cn=${group.commonName}">Supprimer</a></td>
			</c:if>
		</tr>
	</c:forEach>
</table>